package com.atguigu.gmall.service;

import com.atguigu.gmall.entity.SkuInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.csource.common.MyException;

public interface SkuInfoService extends IService<SkuInfo> {
    /**
    * 分页查找所有sku信息
    *@returnType:
    *@param:
    */
    IPage selectPage(IPage<SkuInfo> skuInfoPage);

    SkuInfo getById(Long skuId);
    /**
    * 保存与sku有关的信息
    *@returnType:
    *@param:
    */
    void saveAll(SkuInfo skuInfo);

    void onOrOffSaleBySkuId(Long skuId,Integer isSale) throws MyException;

}
